package com.sduept.nwld.kpi.model;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.sduept.core.entity.IdentifiedObject;

@Entity
@Table(name="tr_kpi_KpiWeight")
public class KpiWeight extends IdentifiedObject {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6701246413249793343L;
	public KpiWeight(){
		
	}
	public KpiWeight(String ptype,String ctype){
		this.ptype = ptype;
		this.ctype = ctype;
	}
	public KpiWeight(String ptype,String ctype,String pid,String cid){
		this.ptype = ptype;
		this.ctype = ctype;
		this.pid = pid;
		this.cid = cid;
	}
	/**
	 * 引用者id
	 */
	private String pid;
	/**
	 * 引用者类型
	 */
	private String ptype;
	
	/**
	 * 被引用者id
	 */
	private String cid;
	/**
	 * 被引用者类型
	 */
	private String ctype;
	
	/**
	 * 权重值
	 */
	private Double value = 0d;
	

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getCid() {
		return cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	public Double getValue() {
		return value;
	}

	public void setValue(Double value) {
		this.value = value;
	}

	public String getPtype() {
		return ptype;
	}

	public void setPtype(String ptype) {
		this.ptype = ptype;
	}

	public String getCtype() {
		return ctype;
	}

	public void setCtype(String ctype) {
		this.ctype = ctype;
	}

}
